@import '../../../../app/mixins.css';

.wrapper {
  background: var(--color-white-smoke);
  border-bottom: 1px solid var(--color-platinum);
  box-sizing: border-box;
  height: var(--header-height);
  padding: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: var(--normal-index);

  &:global(.dark) {
    background: var(--color-maastricht-blue) !important;
    border-bottom: 1px solid var(--light-border-color) !important;

    & .dropdownHandler {
      background: var(--color-maastricht-blue) !important;
      color: var(--color-white) !important;
      border: 1px solid var(--light-border-color) !important;
    }
  }
}

.headerContent {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: space-between;
  margin: 0;
  width: 100%;

  & .logo {
    height: 100%;
    padding: 0 30px;
    border-right: 1px solid rgba(225, 227, 235, 0.3);

    & > img {
      display: block;
      height: 100%;
      width: 100%;
    }
  }

  & .buttonsHolder {
    height: 100%;
    display: flex;
    justify-content: space-between;

    & > div:first-child {
      height: 36px;
      margin: auto;
    }

    & > * {
      margin-left: 24px;
    }
  }

  & .settings {
    border-left: 1px solid rgba(225, 227, 235, 0.3);
  }
}

.settingButton > button {
  @mixin contentSmall bold;

  padding: 0 20px;
  width: auto;
}

.dropdownHandler {
  @mixin contentSmall bold;

  align-items: center;
  background-color: var(--color-white) !important;
  border: 1px solid var(--color-light-gray) !important;
  border-radius: var(--border-radius-standard) !important;
  box-sizing: border-box;
  color: var(--color-maastricht-blue);
  cursor: pointer;
  display: flex;
  height: 100% !important;
  justify-content: space-between;
  min-width: 241px;
  padding: 0 20px;
  position: relative;
  width: auto;

  &::after {
    border: 3px solid transparent;
    border-bottom: 0;
    border-top-color: var(--color-slate-gray);
    content: '';
  }
}

.dropdown {
  min-width: 241px !important;
  right: auto;
  top: calc(100% + -10px);
}

.button {
  margin-bottom: 5px;
  width: 100%;
}

.networkSpan {
  display: flex;
  flex-direction: column;

  & .inputWrapper {
    margin: 10px 0;
  }
}

.customNodeError {
  display: block;
  padding: 8px var(--horizontal-padding-s);
  margin: 8px 0 0;
  background: var(--error-background-color);
  color: var(--color-white);
  border-radius: var(--border-radius-standard);
}
